package com.yuwj.chinaa.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yuwj.chinaa.R;
import com.yuwj.chinaa.entity.EntityExercise;
import com.yuwj.chinaa.entity.EntityNews;

import java.util.Calendar;
import java.util.List;

/**
 * 行权订单列表adapter
 */
public class ExerciseAdapter extends BaseQuickAdapter<EntityExercise, BaseViewHolder> {
    Context context;

    public ExerciseAdapter(Context context, List<EntityExercise> datas) {
        super(R.layout.item_exercise_order, datas);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder holder, final EntityExercise item) {
        holder.setText(R.id.tv_id, "订单编号:"+item.getOrderCode());
        holder.setText(R.id.tv_time, item.getCreateTime());
        holder.setText(R.id.tv_count, item.getAtlasNumber() + "册《中国梦宣传组画》");
        holder.setText(R.id.tv_logistics_state, item.getExerciseOrderStatus() + "");
    }

}
